package com.study.dao; 

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.study.entity.Complaints;

/**  
 *  操作数据库的dao层
 */  

public interface ComplaintsDao  
{  
    
    //增加一个Complaints
    public void saveComplaints(Complaints complaints);
	
	//根据id查询Complaints
    public Complaints getComplaintsById(String id);
	
	
	//分页条件查询Complaints
	public List<Complaints> listComplaints(@Param("complaints") Complaints complaints, @Param("from") String from, @Param("number") String number);
	
	public long getComplaintsCount(@Param("complaints") Complaints complaints);
	
	
	
	
	//根据id删除Complaints
	public boolean removeComplaintsById(String id);
	
	//更新Complaints
	public void updateComplaints(Complaints complaints);
	
	
	
	
	
}